<template>
  <div>
    <n-notification-provider>

    <n-config-provider :theme="mydarkTheme?darkTheme:undefined" :locale="zhCN" >
    <RouterView></RouterView>
   
    <n-global-style />
    </n-config-provider>
    </n-notification-provider>
</div>
</template>

<script  setup lang="ts">
import { darkTheme, NConfigProvider, GlobalThemeOverrides,zhCN } from 'naive-ui'
import {storeToRefs} from 'pinia'
import { VaeStore } from './store'

//解构
const store = VaeStore();
let {mydarkTheme} = storeToRefs(store);
  const themeOverrides: GlobalThemeOverrides = {
    common: {
      primaryColor: 'red',
     
  
    },
    Button: {
      textColor: 'red'
    },
  
  }
  
</script>

<style lang="less" scoped></style>
